Repository navigation
test(fixtures): isolate unchanged proof identity - #3193
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reached
Next review available in: 17 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
Summary by CodeRabbit
WalkthroughThe PR adds scenario-owned unchanged repository-exposure and assistant-proof fixtures. It updates first-action expectations to omit the ledger and adds smoke tests for unchanged evidence, weak-grip classification, artifact paths, hashes, and canonical output. ChangesUnchanged first-action control
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related issues
Possibly related PRs
Suggested labels: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Maintainer convergence record for exact head 48fc252fef341ca2264af9838c06b7f6a2acb7c8.
Disposition: REVIEW_READY.
Independent source/proof review inspected this exact head and reported no findings. The scenario-owned before/after snapshots both resolve seam 67fc764ba37d77bd as weakly_gripped; the corpus independently derives unchanged and requires agreement across snapshots, assistant proof, and receipt. The null ledger and canonical improved flagship remain unchanged.
Current exact-head evidence: focused producer/consumer, retained fixture, corpus, fixture-contract, golden, dogfood, formatting, and diff checks passed locally. Hosted routed Rust required gates, PR evidence, proof-route dry run, artifact upload, JUnit tests, coverage, source-of-truth, dependency review, cargo-deny, UB review, GitGuardian, CodeRabbit, and patch coverage all completed successfully. Intentional route skips are policy results, not passes.
Visibility and ownership: REST reports no prior reviews or inline comments; GraphQL reports zero review threads, including zero unresolved threads. Branch protection requires Ripr Rust Small Result, now successful; the active ruleset requires thread resolution and allows squash merge with zero required approvals. No concurrent head movement was observed.
This COMMENT records the independent exact-head review evidence; it is not a GitHub approval and makes no release-readiness claim.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 48fc252fef
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Confirmed findings
- Lane scope mismatch: worker/async/GC/detach/transfer boundaries are JS/WASM concepts not present in this Rust-only fixture identity PR. No actionable memory-lifetime UB within lane focus is derivable from the diff, seeded thread, or unsafe-review receipts.
- PR body admits hosted broad check-pr did not complete within 900s. UB review posture therefore cannot rely on the local exact-head pass alone; a hosted cargo-test rerun of the focused exact-head commands is required residual evidence.
Verification questions
- Confirm hosted cargo-test receipt is scheduled-late, not yet landed; exact-head proof rests on PR body claim of focused PASS and prior broad check-pr timeout. No blocked-by-PR correctness gap, but red/green closure requires hosted exact-head run before merge.
- Confirm no evidence the new weak-to-weak scenario proof can be produced from a fresh, repo-derived run before being pinned as a golden.
- Confirm reproduction tests compare producer output to a golden, not to an independently re-derived weak-to-weak expectation, so silent fixture drift cannot be caught by these tests.
Test proof
- Focused HEAD proof failed (exit 1):
cargo test --locked --package ripr --test cli_smoke unchanged_control first_useful_action_corpus_pins_routing_cases -- --exact --nocapture. This is a current failure, not a red/green witness.
Refuted
- The new fixtures' before/after are byte-identical, so the unchanged assertion is tautological and the test passes regardless of movement logic.; refuted because: Corpus test does not compare blob bytes; it asserts /seams[67fc764ba37d77bd]/grip_class equality and weakly_gripped on both sides via a closure, plus proof evidence_movement.state==unchanged and receipt seam.change==unchanged. These are structural invariants over the parsed snapshot, not file equality.
- Before/after repo-exposure fixtures could leak identity drift if a producer-side schema_version field were added later; refuted because: Both new fixtures carry schema_version=0.2 with identical metrics and the same seam 67fc764ba37d77bd; they share byte-for-byte structure in this PR so no identity drift exists today, and the corpus test pins before_class==after_class at runtime. Risk remains parked for a future schema change rather than blocker for this PR.
Evidence gaps
- Cargo-test sensor receipt is still pending; hosted rerun of focused exact-head tests is required but not yet observed.
- artifact-verifier failed with exit code 2; in a fixture-only PR this is most plausibly a stale golden/contract for the new scenario-owned assistant-proof.json or first-useful-action artifacts, not an active-view UB signal, but it is unconfirmed without the receipt.
- Model proof intent was rejected by deterministic validation.
Parked follow-ups
- Weak-to-weak unchanged agreement is enforced by hand-rolled content inspection (seam_class closure, json_pointer_str). A small helper module (e.g., first_useful_action_corpus::assert_unchanged_control) would centralize this; currently it is duplicated logic between cli_smoke.rs and the retained unit test. Not a blocker; flag for follow-up if a third control case appears.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Maintainer convergence record for exact head 43b38260a35f6335075ff0cc4d3fb665fd2b0e02.
Disposition: REVIEW_READY.
Independent current-head source/proof review found no remaining findings. The repair makes the negative control a single durable artifact graph: production agent verify consumed the scenario-owned canonical before/after repo-exposure artifacts and derived weakly_gripped -> weakly_gripped, gap_movement: unchanged, no observed-value additions/removals, related_test_delta: 0, and an empty evidence delta. Production agent receipt then rebound those exact paths and bytes; each actual raw snapshot SHA-256 equals receipt provenance sha256:e4c5949e4e4e6237f1c0b951df215cbc1516628d8ecd47cfa70fcb07810e8d9e. The corpus calculates both hashes and asserts snapshot content commitments plus verify/receipt delta agreement. The canonical improved flagship remains unchanged.
The prior P1 received published repair evidence and its exact thread is resolved. GraphQL currently reports one resolved thread and zero unresolved threads. Hosted exact-head routed Rust required gates, advisory reports, PR evidence, proof-route dry run, report upload, protected result, JUnit tests, coverage, source-of-truth, dependency review, cargo-deny, UB review, GitGuardian, patch coverage, and AI review checks all completed successfully. Intentional routed skips are policy results, not passes. Focused producer/consumer/corpus/retained fixtures, fixture contracts, goldens, dogfood, formatting, and diff checks passed locally; the bounded aggregate precommit remained NOT_ESTABLISHED after 300 seconds, which hosted exact-head evidence now covers for the affected seam.
This COMMENT records the independent exact-head review evidence; it is not a GitHub approval and makes no release-readiness claim.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 43b38260a3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Verification questions
- Confirm scenario-owned before/after snapshots are byte-equal (sha256:e4c5949e4e4e6237f1c0b951df215cbc1516628d8ecd47cfa70fcb07810e8d9e), content_sha256:sha256:35495c96...; agent-verify derives weakly_gripped->weakly_gripped with empty evidence_delta and related_test_delta:0, matching receipt seam/evidence_delta.
- Confirm fixture graph now self-referential: before/after snapshots drive verify which drives receipt which drives assistant-proof which is consumed by first-action; all paths point within unchanged-after-attempt except shared pr_guidance/agent_brief.
- Confirm before/after repo-exposure snapshots are byte-identical (content_sha256 35495c96...); a truly unchanged control is fine, but if either snapshot were ever edited independently the test would not detect it because no invariant cross-references the snapshot's raw hash against the receipt's provenance hash at the file-system level (only inside the receipt JSON).
- Confirm head cargo-test is scheduled-late; local exact-head proof rests on focused PASS plus prior broad check-pr timeout.
- Confirm reproduction tests assert byte-equality to goldens; cannot detect drift between the scenario fixture and a fresh run derived from inputs.
- Confirm sibling paths not scanned: other scenario subdirs under fixtures/boundary_gap/expected/first-useful-action/ and other producer/consumer pairs that load these snapshots were not enumerated; cannot claim no other readers exist.
- Confirm duplication risk: seam_class helper closure in cli_smoke.rs reimplements seam extraction already present in agent-verify.json / assistant-proof.json evidence_movement; future seam-set changes could drift between corpus assertion and verify derivation.
- Confirm no additional sibling paths identified across ripr CLI/test/fixture surfaces; only the first_useful_action corpus consumes this fixture graph, so no parallel helper requires the same isolation treatment. Hosted cargo-test rerun remains the unproven residual.
Test proof
- Focused HEAD proof failed (exit 1):
cargo test --locked --package ripr --test cli_smoke unchanged_control first_useful_action_corpus_pins_routing_cases first_useful_action_matches_unchanged_after_attempt_fixture -- --nocapture. This is a current failure, not a red/green witness.
Refuted
- Reproduce-then-pin tests risk re-running from inputs and producing a different golden than what is checked in (silent fixture drift).; refuted because: The focused producer/consumer tests pin producer output to the checked-in golden; corpus independently reads the fixture and derives hashes; both will pass even if the fixture is wrong. This is a real residual risk for humans, not a blocker: the contract is that the fixture is the source of truth and the producer is deterministic against inputs, so the assertion is 'producer matches pinned golden'. A re-run witness would still be valuable as an advisory check.
Evidence gaps
- fixture-contract checks (cargo xtask check-fixture-contracts) and goldens check pass locally on provenance repair head; hosted cargo-test receipt still scheduled-late, artifact-verifier failed (exit 2).
- artifact-verifier failed; corroboration of the producer-pinned SHA-256 identities in PR body is incomplete in CI.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@crates/ripr/tests/cli_smoke.rs`:
- Around line 2759-2815: Extend the unchanged-control assertions in
crates/ripr/tests/cli_smoke.rs#L2759-L2815 to validate
/provenance/verify_artifact/path and its file-byte SHA-256 against
agent-verify.json, alongside the existing before_artifact and after_artifact
provenance checks. In
fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-receipt.json#L10-L35,
keep the provenance paths and sha256 values synchronized with the referenced
before, after, and verify artifact files after any fixture changes.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 3382d5d3-b636-4778-93a4-49d2c8550e66
📒 Files selected for processing (6)
crates/ripr/tests/cli_smoke.rsfixtures/boundary_gap/expected/first-useful-action/README.mdfixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/after.repo-exposure.jsonfixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-receipt.jsonfixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-verify.jsonfixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/before.repo-exposure.json
EffortlessSteven
left a comment
There was a problem hiding this comment.
Maintainer convergence record for exact head e7fe67f1ea2d6973398f0653414d80092cf45a7b.
Disposition: REVIEW_READY.
Independent current-head source/proof review found no remaining findings. The unchanged control is generated from the declared production repo-exposure-json route, asserts the producer's canonical absolute fixture root before portable normalization, preserves the complete semantic evidence_record, and recomputes the governed content commitment with the canonical placeholder-hash algorithm. Mutation controls reject evidence-record removal, semantic gap-state mutation, and an incorrect content digest. Production agent verify derives evidence_record-sourced weak-to-weak unchanged movement with empty deltas; the receipt binds the exact before, after, and verify bytes, and the corpus recalculates all three raw hashes. The canonical improved flagship and operator artifacts remain unchanged.
All three review threads hold published repairs and are resolved. Hosted exact-head JUnit, coverage, source-of-truth, dependency review, cargo-deny, UB review, GitGuardian, patch coverage, and AI review checks completed successfully; intentional route skips are policy outcomes, not passes. Focused producer/consumer/corpus/retained fixtures, fixture contracts, goldens, dogfood, formatting, diff checks, and cargo xtask precommit passed locally.
This COMMENT records the independent exact-head review evidence; it is not a GitHub approval and makes no release-readiness claim.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Summary
unchanged-after-attemptnegative control its own unchanged assistant proof and receiptSwarm / Source Boundary
ripr-swarmNo publishing, signing, release, credential, or source-repository authority moves.
Source-of-truth Links
Proposal: n/a
Spec: RIPR-SPEC-0020; RIPR-SPEC-0019
ADR: n/a
Plan item: first-useful-action/unchanged-negative-control-identity
Active goal: post-#3167 equality-boundary evidence honesty
Issue: Closes #3189
Scope
Scope Classification
Production delta:
Evidence/support delta:
Single acceptance criterion:
unchanged/weakly_gripped, while the canonical improved flagship remains unchangedNon-goals:
Support-tier Impact
docs/status/SUPPORT_TIERS.mdClaim/proof notes:
Policy Impact
Ledger or exception notes:
Proof
Result, failures, or skipped proof:
e7fe67f1ea2d6973398f0653414d80092cf45a7b: productionagent verifyderives weak-to-weakunchangedwith empty evidence delta; productionagent receiptbinds the exact scenario snapshot bytes; corpus asserts both raw SHA-256 identities, content commitments, observed-value deltas, related-test delta, and receipt/verify agreementorigin/maincheck-prrun found the retained unchanged unit test still supplied canonical proof/ledger; its setup now uses the scenario proof and no ledger, and the exact test passescargo xtask precommitcompleted successfully in 268 secondsClaim Boundary
This proves identity and movement consistency for one checked unchanged negative control. It does not establish runtime mutation evidence, broad route correctness, front-panel correctness, release readiness, or merge readiness.
Rollback
Revert commits
e7fe67f1ea2d6973398f0653414d80092cf45a7b,31328394f76ed15f62dfd96bd4fe230428d5ca88,43b38260a35f6335075ff0cc4d3fb665fd2b0e02,48fc252fef341ca2264af9838c06b7f6a2acb7c8, anddf9b69b3f35363f708bf086b882a6709ba9fda65; there is no migration or external state.Spec-Test-Code Traceability
crates/ripr/tests/cli_smoke.rsassistant-loop proofandfirst-actionexplicit-input pathsStatic Language Check
killed,survived,untested,proven, andadequate.CI Economics
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Gates
cargo fmt --checkcargo check --workspace --all-targetscargo test --workspacecargo clippy --workspace --all-targets -- -D warningscargo doc --workspace --no-depscargo package -p ripr --listcargo publish -p ripr --dry-runcargo xtask check-fixture-contractscheck-prdid not complete within 900 secondsExtension changes: not applicable.